import fs from 'fs'
import Router from 'koa-router'
const router = new Router()
fs.readdirSync(__dirname).forEach(file => {
    if(!file.includes('index')) {
        let r = require('./' + file)
        router.use(r.routes())
    }
})
module.exports = router